//
//  WDRootViewController.h
//  Zhihuijinfu
//
//  Created by 王笛 on 2016/12/12.
//  Copyright © 2016年 王笛. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^succeed)(id responseObject);
typedef void(^filed)(NSError *error);

@interface WDRootController : UIViewController <UITableViewDataSource, UITableViewDelegate>
/** tableView */
@property (nonatomic, strong) UITableView *tableView;
/** tableView的数据源 */
@property (nonatomic, strong) NSMutableArray *dataArray;
/** 当前页 */
@property (assign, nonatomic) NSInteger page;
/** 总页数 */
@property (assign, nonatomic) NSInteger totalPage;
@property (assign, nonatomic) BOOL firstCome;
/** 加载占位图 */
@property (strong, nonatomic) WDPlaceholderView *placeView;

- (WDPlaceholderView *)loadPlaceViewWithImageName:(NSString *)imageName status:(NSString *)status;

- (void)showPlaceViewWithImageName:(NSString *)imageName status:(NSString *)status;

- (void)hideLoadView;

- (void)sendRequestDataWithURLStr:(NSString *)URLStr Model:(NSString *)className parameters:(NSDictionary *)parameters succeed:(succeed)succeed filed:(filed)filed;

@end
